import math

road=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]]
roads=[]
for i in range(0,4):
    roads.append([])
for i in range(0,4):
    for j in range(0,4):
        roads[i].append(0)

print(road)
print(roads)
x=[1,2,3,4]
y=[1,2,3,4]
n=4
i1=0
j1=0
while i1<n:
    for j1 in range(0,n):
        xr = x[i1] - x[j1]
        yr = y[i1] - y[j1]
        # print(x[i],y[i])
        r = xr * xr + yr * yr
        r = math.sqrt(r)

        roads[i1][j1] = r
        print(i1,j1)
    i1 = i1+1


print(roads)